﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for PhongBan
/// </summary>
public class PhongBan
{
	public PhongBan()
	{		
	}

    public DataTable LoadDanhSachPhongBan()
    {
        string proName = "sp_HienThiDanhSachPhongBan";
        DataService ds = new DataService();
        ds.Connect();
        DataTable table = ds.ExcuteProcedureGetTable(proName, null);
        table.Rows.InsertAt(table.NewRow(), 0);
        table.Rows[0]["MaPhong"] = "0";
        table.Rows[0]["TenPhong"] = "Tất cả";
        ds.Disconnect();
        return table;
    }
}